Optimal. Leaf size=155 \[ \frac{b n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac{b n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{g h-f i}+\frac{\log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}-\frac{\log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.195304, antiderivative size = 155, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 4, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.138, Rules used = {2418, 2394, 2393, 2391} \[ \frac{b n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac{b n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{g h-f i}+\frac{\log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}-\frac{\log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2394
Rule 2393
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c (d+e x)^n\right )}{(h+221 x) (f+g x)} \, dx &=\int \left (\frac{221 \left (a+b \log \left (c (d+e x)^n\right )\right )}{(221 f-g h) (h+221 x)}-\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right )}{(221 f-g h) (f+g x)}\right ) \, dx\\ &=\frac{221 \int \frac{a+b \log \left (c (d+e x)^n\right )}{h+221 x} \, dx}{221 f-g h}-\frac{g \int \frac{a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{221 f-g h}\\ &=\frac{\log \left (-\frac{e (h+221 x)}{221 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{221 f-g h}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{221 f-g h}-\frac{(b e n) \int \frac{\log \left (\frac{e (h+221 x)}{-221 d+e h}\right )}{d+e x} \, dx}{221 f-g h}+\frac{(b e n) \int \frac{\log \left (\frac{e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{221 f-g h}\\ &=\frac{\log \left (-\frac{e (h+221 x)}{221 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{221 f-g h}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{221 f-g h}+\frac{(b n) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{221 f-g h}-\frac{(b n) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{221 x}{-221 d+e h}\right )}{x} \, dx,x,d+e x\right )}{221 f-g h}\\ &=\frac{\log \left (-\frac{e (h+221 x)}{221 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{221 f-g h}-\frac{\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{221 f-g h}-\frac{b n \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{221 f-g h}+\frac{b n \text{Li}_2\left (\frac{221 (d+e x)}{221 d-e h}\right )}{221 f-g h}\\ \end{align*}
Mathematica [A] time = 0.0616598, size = 111, normalized size = 0.72 \[ \frac{b n \text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )-b n \text{PolyLog}\left (2,\frac{i (d+e x)}{d i-e h}\right )+\left (a+b \log \left (c (d+e x)^n\right )\right ) \left (\log \left (\frac{e (f+g x)}{e f-d g}\right )-\log \left (\frac{e (h+i x)}{e h-d i}\right )\right )}{g h-f i} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.74, size = 647, normalized size = 4.2 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a{\left (\frac{\log \left (g x + f\right )}{g h - f i} - \frac{\log \left (i x + h\right )}{g h - f i}\right )} + b \int \frac{\log \left ({\left (e x + d\right )}^{n}\right ) + \log \left (c\right )}{g i x^{2} + f h +{\left (g h + f i\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{g i x^{2} + f h +{\left (g h + f i\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{{\left (g x + f\right )}{\left (i x + h\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]